package com.sanjin.dubbo.transport;

/**
 * @author: jiangxch
 * @date: 2021/2/16 下午8:10
 */
public interface ChannelBuffer {
    
    /**
     * buffer 容量
     * @return
     */
    int capacity();
    
    /**
     * 清理buffer
     */
    void clear();
    
    void writeBytes(byte[] bytes);
    
    void readBytes(byte[] bytes);
}
